<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>
    <link rel="stylesheet" href="../css/login.css">
    <script src="../js/jquery.min.js"></script>
    <script>
        $(function(){
            $("#regist").on("click",function () {
                var username = $("#username").val();
                var password = $("#password").val();

                $.ajax({
                    url:"/PermissionSystem/account/insertId",
                    type:"get",
                    data:{
                        username:username,
                        password:password
                    },
                    dataType:"json",
                    success:function(data){
                        console.log(data);
                        console.log(data.code);

                    }
                })


            })


        })
        </script>
</head>

<body>
    <div class="whole">
        <div class="head">
            权限系统注册
        </div>
        <div class="main">
            <div class="item">
                <span>账号</span>
                <input type="text" id="username"/>
            </div>
            <div class="item">
                <span>密码</span>
                <input type="text" id="password"/>
            </div>
            <div class="item">
                <span>确认密码</span>
                <input type="text" id="passwordOK"/>
            </div>
            <div class="item">
                <input type="button" id="regist" value="点击注册"/>
                <input type="button" id="resultLogin" value="返回登录"/>

            </div>
        </div>
    </div>

</body>
</html>